/**
 * 统一处理返回格式
 * @auth wuji
 * @date 19-07-04 
 */

module.exports.resSuc = function(responseContent) {
    return {
        code: 0,
        msg: "ok",
        data: responseContent || ""
    }
}


module.exports.resErr = function(errCode, errMsg) {
    return {
        code: errCode || 500,
        msg: errMsg || "error",
        data: ""
    }
}

// 错误码
module.exports.errCode = {
    paramErr: {
        code: 402,
        msg: "请求参数错误"
    }
}

